public class Point
{
    private double x;//点的x坐标
    private double y;//点的y坐标
    public Point(double x,double y)//构造方法,给x坐标和y坐标赋初值
    {
        this.x=x;
        this.y=y;
    }
    public void setX(double x)//setX()方法，设置点的x坐标
    {
        this.x = x;
    }

    public void setY(double y)//setY()方法，设置点的y坐标
    {
        this.y = y;
    }
    public double getX()//getX()方法，设置点的x坐标
    {
        this.x=x;
        return this.x;
    }
    public double getY()//getY()方法，设置点的y坐标
    {
        this.y=y;
        return this.y;
    }
    public String info()//info()方法，以(x,y)形式显示点的坐标
    {
        return "(" + x + "," + y + ")";
    }
}
